package com.ruoyi.system.domain;

import java.time.LocalTime;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤规则对象 attendance_rule
 *
 * @author ruoyi
 * @date 2025-04-21
 */
public class AttendanceRule extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 上班打卡开始时间 */
    @Excel(name = "上班打卡开始时间", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime checkInStart;

    /** 上班打卡结束时间 */
    @Excel(name = "上班打卡结束时间", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime checkInEnd;

    /** 下班打卡开始时间 */
    @Excel(name = "下班打卡开始时间", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime checkOutStart;

    /** 下班打卡结束时间 */
    @Excel(name = "下班打卡结束时间", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime checkOutEnd;

    /** 迟到时间阈值 */
    @Excel(name = "迟到时间阈值", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime lateThreshold;

    /** 早退时间阈值 */
    @Excel(name = "早退时间阈值", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime earlyLeaveThreshold;

    /** 规则状态（1：启用，0：禁用） */
    @Excel(name = "规则状态", readConverterExp = "1=启用,0=禁用")
    private Long status;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setCheckInStart(LocalTime checkInStart) {
        this.checkInStart = checkInStart;
    }

    public LocalTime getCheckInStart() {
        return checkInStart;
    }

    public void setCheckInEnd(LocalTime checkInEnd) {
        this.checkInEnd = checkInEnd;
    }

    public LocalTime getCheckInEnd() {
        return checkInEnd;
    }

    public void setCheckOutStart(LocalTime checkOutStart) {
        this.checkOutStart = checkOutStart;
    }

    public LocalTime getCheckOutStart() {
        return checkOutStart;
    }

    public void setCheckOutEnd(LocalTime checkOutEnd) {
        this.checkOutEnd = checkOutEnd;
    }

    public LocalTime getCheckOutEnd() {
        return checkOutEnd;
    }

    public void setLateThreshold(LocalTime lateThreshold) {
        this.lateThreshold = lateThreshold;
    }

    public LocalTime getLateThreshold() {
        return lateThreshold;
    }

    public void setEarlyLeaveThreshold(LocalTime earlyLeaveThreshold) {
        this.earlyLeaveThreshold = earlyLeaveThreshold;
    }

    public LocalTime getEarlyLeaveThreshold() {
        return earlyLeaveThreshold;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return "AttendanceRule{" +
                "id=" + id +
                ", ruleName='" + ruleName + '\'' +
                ", checkInStart=" + checkInStart +
                ", checkInEnd=" + checkInEnd +
                ", checkOutStart=" + checkOutStart +
                ", checkOutEnd=" + checkOutEnd +
                ", lateThreshold=" + lateThreshold +
                ", earlyLeaveThreshold=" + earlyLeaveThreshold +
                ", status=" + status +
                ", userId=" + userId +
                '}';
    }
}